export default {
    namespaced: true,
    state: {
        navMenuList: [],  //导航tab的菜单选项
    },
    mutations: {
        navMenuList(state: any, value: any) {
            state.navMenuList=value
        },
        //清空所有缓存
        cleanAll(state: any, value: any) {
            let names = Object.getOwnPropertyNames(state);
            for (const name of names) {
                if (Array.isArray(state[name])) {
                    state[name] = [];
                } else {
                    state[name] = undefined;
                }
            }
        },
    },
    actions: {},
    modules: {},
    getters: {}
}

